package com.msb.test09;

public class Test {
    public static void main(String[] args) {
        Girl girl = new Girl();
//        Cat cat = new Cat();

//        girl.play(cat);
//        Dog dog = new Dog();
//        girl.play(dog);

//        Animal animal = new Cat();
        Animal animal = new Dog();
        girl.play(animal);

         animal = new Cat();
        girl.play(animal);

    }
}
